﻿<metro:Window x:Class="D3StatsClient.View.SettingsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:metro="http://schemas.codeplex.com/elysium"
        xmlns:params="http://schemas.codeplex.com/elysium/params"
        Title="Settings" Height="540" MinHeight="540" MinWidth="500" Width="500" Icon="/Assets/Icons/Gear.png">
    <StackPanel>
        <TabControl Height="440" BorderBrush="Transparent" BorderThickness="0">
            <TabItem  Header="General" Selector.IsSelected="True">
                <StackPanel Margin="3">
                    <Border BorderThickness="1" BorderBrush="Gray" Padding="5">
                        <StackPanel>
                            <DockPanel>
                                <TextBlock Text="Tracker Service provider name: " HorizontalAlignment="Left" />
                                <TextBox Text="{Binding TrackerServiceProviderName}" Margin="0,0,10,0" Width="240" HorizontalAlignment="Right" />
                            </DockPanel>
                            <StackPanel DockPanel.Dock="Bottom">
                                <TextBlock FontSize="10" FontStyle="Italic" Text="Change this if you have specified a name for the tracker service in the plugin." />
                            </StackPanel>
                        </StackPanel>
                    </Border>
                    <Border BorderThickness="1" BorderBrush="Gray" Padding="5">
                        <StackPanel>
                            <DockPanel>
                                <TextBlock Text="Ignore list: " HorizontalAlignment="Left" />
                                <TextBox Text="{Binding IgnoreList}" Margin="0,0,10,0" Width="240" HorizontalAlignment="Right" />
                            </DockPanel>
                            <StackPanel DockPanel.Dock="Bottom">
                                <TextBlock FontSize="10" FontStyle="Italic" Text="A semi column delimited list of item names to ignore when tracking drops." />
                            </StackPanel>
                        </StackPanel>
                    </Border>
                    <!--<Border BorderThickness="1" BorderBrush="Gray" Padding="5">
                        <StackPanel>
                            --><!--<StackPanel Orientation="Horizontal">
                                <TextBlock Text="Select Theme: " />
                                <RadioButton Margin="170,0,0,0" Command="{Binding ChangeThemeCommand}" CommandParameter="{params:Manager.Theme=Light}" Content="Light" Style="{StaticResource {x:Type ToggleButton}}"/>
                                <RadioButton Margin="10,0,0,0" Command="{Binding ChangeThemeCommand}" CommandParameter="{x:Type Manager.Theme=Dark}" Content="Dark" Style="{StaticResource {x:Type ToggleButton}}"/>
                            </StackPanel>-->
                            <!--<StackPanel DockPanel.Dock="Bottom">
                                <TextBlock FontSize="10" FontStyle="Italic" Text="This will change the overall look and feel of the application." />
                            </StackPanel>--><!--
                        </StackPanel>
                    </Border>-->
                    <!--<Border BorderThickness="1" BorderBrush="Gray" Padding="5">
                        <StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="Security Token: " />
                                <TextBox Text="{Binding SecurityToken}" Margin="10,0,0,0" Width="240"  />                          
                            </StackPanel>
                            <StackPanel DockPanel.Dock="Bottom">
                                <TextBlock FontSize="10" FontStyle="Italic" Text="This is the security token used to upload your sessions to the statistics website." />
                            </StackPanel>
                        </StackPanel>
                    </Border>-->
                </StackPanel>
            </TabItem>
            <TabItem Header="Notifications">
                
                <StackPanel Margin="3">
                    <Border BorderThickness="1" BorderBrush="Gray" Padding="5">
                        <StackPanel>
                            <DockPanel Margin="10,5,0,0">
                                <TextBlock Text="Notify on Legendary Drop: " />
                                <CheckBox HorizontalAlignment="Right" IsChecked="{Binding NotifyOnLegendary, Mode=TwoWay}" />                             
                            </DockPanel>
                            <!--<DockPanel Margin="10,5,0,0">
                                <TextBlock Text="Mimum Ilevel: " />
                                <ComboBox HorizontalAlignment="Right" SelectedValuePath="Content" SelectedValue="{Binding LegendaryNotificationMinLevel, Mode=TwoWay}">
                                    <ComboBoxItem Content="63" />
                                    <ComboBoxItem Content="62" />
                                    <ComboBoxItem Content="61" />
                                    <ComboBoxItem Content="60" />
                                    <ComboBoxItem IsSelected="True" Content="All" />
                                </ComboBox>
                            </DockPanel>-->
                            <DockPanel Margin="10,5,0,0">
                                <TextBlock DockPanel.Dock="Left" Text="Sound File: " />
                                <TextBlock ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Text="{Binding LegendarySoundFile}" TextTrimming="CharacterEllipsis" Width="150" />
                                <Button HorizontalAlignment="Right" Command="{Binding BrowseForSoundFileCommand}" CommandParameter="LegendarySoundFile" DockPanel.Dock="Right" Content="Browse" />
                            </DockPanel>
                        </StackPanel>
                    </Border>
                        <Border BorderThickness="1" BorderBrush="Gray" Padding="5">
                        <StackPanel>
                            <DockPanel Margin="10,5,0,0">
                                <TextBlock Text="Notify on Rare Drop: " />
                                <CheckBox HorizontalAlignment="Right" IsChecked="{Binding NotifyOnRare, Mode=TwoWay}" />
                            </DockPanel>
                            <DockPanel Margin="10,5,0,0">
                                <TextBlock DockPanel.Dock="Left" Text="Sound File: " />
                                <TextBlock ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Text="{Binding RareSoundFile}" TextTrimming="CharacterEllipsis" Width="150" />
                                <Button HorizontalAlignment="Right" Command="{Binding BrowseForSoundFileCommand}" CommandParameter="RareSoundFile" DockPanel.Dock="Right" Content="Browse" />
                            </DockPanel>
                        </StackPanel>
                    </Border>
                        <Border BorderThickness="1" BorderBrush="Gray" Padding="5">
                        <StackPanel>
                            <DockPanel Margin="10,5,0,0">
                                <TextBlock Text="Notify on Magic Drop: " />
                                <CheckBox HorizontalAlignment="Right" IsChecked="{Binding NotifyOnMagic, Mode=TwoWay}"  />
                            </DockPanel>
                            <DockPanel  Margin="10,5,0,0">
                                <TextBlock DockPanel.Dock="Left" Text="Sound File: " />
                                <TextBlock ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Text="{Binding MagicSoundFile}" TextTrimming="CharacterEllipsis" Width="150" />
                                <Button HorizontalAlignment="Right" Command="{Binding BrowseForSoundFileCommand}" CommandParameter="MagicSoundFile" DockPanel.Dock="Right" Content="Browse" />
                            </DockPanel>                           
                        </StackPanel>
                        
                    </Border>
                        <Border BorderThickness="1" BorderBrush="Gray" Padding="5">
                        <StackPanel>
                            <DockPanel Margin="10,5,0,0">
                                <TextBlock Text="Notify on Crafting Drop: " />
                                <CheckBox HorizontalAlignment="Right" IsChecked="{Binding NotifyOnCrafting, Mode=TwoWay}"  />
                            </DockPanel>
                            <DockPanel  Margin="10,5,0,0">
                                <TextBlock DockPanel.Dock="Left" Text="Sound File: " />
                                <TextBlock ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Text="{Binding CraftingSoundFile}" TextTrimming="CharacterEllipsis" Width="150" />
                                <Button HorizontalAlignment="Right" Command="{Binding BrowseForSoundFileCommand}" CommandParameter="CraftingSoundFile" DockPanel.Dock="Right" Content="Browse" />
                            </DockPanel>
                        </StackPanel>
                    </Border>
                </StackPanel>
            </TabItem>
        </TabControl>
        <!-- Status -->
        <TextBlock HorizontalAlignment="Right" Text="{Binding Status}" Margin="0,-10,0,0"/>

        <DockPanel HorizontalAlignment="Right">
            <Button Width="75" DockPanel.Dock="Left" Content="Close" Margin="0,0,10,14" Click="Button_Click_1" />
            <Button IsDefault="True" Width="75" DockPanel.Dock="Right" Content="Apply" Margin="0,0,18,14" Command="{Binding SaveSettingsCommand}"/>
        </DockPanel>
    </StackPanel>
</metro:Window>
